package {
	
	import ThreeMelons.Daiquiri.Input.Input;
	import ThreeMelons.Daiquiri.Transition.Scene;
	import ThreeMelons.Daiquiri.Visualization.Visualization;
	import ThreeMelons.Daiquiri.Visualization.WorldRenderer;
	import ThreeMelons.Daiquiri.World.Camera.Camera;
	import ThreeMelons.Daiquiri.World.World;
	
	import flash.display.MovieClip;
	
	public class PongScene extends Scene {
		
		public function PongScene() {
			
			this.canvas = new MovieClip();
			
			var world:World = new World();
			var camera:Camera = new Camera();
			camera.UseOrthogonalProjection(640, 480);	
			world.AddChild(camera);
			
			var worldRenderer:WorldRenderer = new WorldRenderer(world);
			worldRenderer.DrawSky = false;
			worldRenderer.DrawAxis = false;
			worldRenderer.DrawGrid = false;
			
			var visualization:Visualization = new Visualization();
			visualization.Canvas = this.canvas;
			visualization.AddChild(worldRenderer);
			
			
			
			
			
			var input:Input = new Input();
			
			var obj:PaletaRendererCreator = new PaletaRendererCreator();
			
			this.AddChild(world);
			this.AddChild(input);
			this.AddChild(visualization);
		}

	}
}